/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.employee.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.vivo.fx.employee.entity.FxEmployeeinfo;
import com.vivo.fx.employee.dao.FxEmployeeinfoDao;

/**
 * fx人事信息Service
 * @author jyangye
 * @version 2017-11-01
 */
@Service
@Transactional(readOnly = true)
public class FxEmployeeinfoService extends CrudService<FxEmployeeinfoDao, FxEmployeeinfo> {

    @Autowired
    private FxEmployeeinfoDao fxEmployeeinfoDao;

	public FxEmployeeinfo get(String id) {
		return super.get(id);
	}
	
	public List<FxEmployeeinfo> findList(FxEmployeeinfo fxEmployeeinfo) {
		return super.findList(fxEmployeeinfo);
	}


	public List<FxEmployeeinfo> findByIdCardNum(String identityid) {
		return fxEmployeeinfoDao.getByIdNum(identityid);
	}

	public Page<FxEmployeeinfo> findPage(Page<FxEmployeeinfo> page, FxEmployeeinfo fxEmployeeinfo) {
		return super.findPage(page, fxEmployeeinfo);
	}
	
	@Transactional(readOnly = false)
	public void save(FxEmployeeinfo fxEmployeeinfo) {
		super.save(fxEmployeeinfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(FxEmployeeinfo fxEmployeeinfo) {
		super.delete(fxEmployeeinfo);
	}
	
}